﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Wikimentation.Areas.Wikimentation.Models;


public static class ExtensionMethods
{
    public static List<WikiPage> RenderWikitags(this List<WikiPage> pages)
    {
        foreach (var item in pages)
        {
            item.Content = new WikiPlex.WikiEngine().Render(item.Content);
        }
        return pages;
    }
    public static WikiPage RenderWikitags(this WikiPage page)
    {
        page.Content = new WikiPlex.WikiEngine().Render(page.Content);
        return page;
    }
}
